using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN SalaryRulesEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: SalaryRulesEntity</para>
	/// <para>Description: ClassSalaryRulesEntity store data of table SalaryRules</para>
	///</summary>

	[Serializable]
	public partial class SalaryRulesEntity{


		private bool _InternalChangedIsNullSalaryRuleId=true;
		private bool _IsNullSalaryRuleId=true;
		private bool _InternalChangedIsNullRuleName=true;
		private bool _IsNullRuleName=true;
		private bool _InternalChangedIsNullNote=true;
		private bool _IsNullNote=true;
		private bool _InternalChangedIsNullStatus=true;
		private bool _IsNullStatus=true;
		private bool _InternalChangedIsNullFromDay=true;
		private bool _IsNullFromDay=true;
		private bool _InternalChangedIsNullToDay=true;
		private bool _IsNullToDay=true;
		private int _SalaryRuleId;
		private string _RuleName;
		private string _Note;
		private Byte _Status;
		private int _FromDay;
		private int _ToDay;
		[XmlElement(ElementName = "IsNullSalaryRuleId")]
		public bool IsNullSalaryRuleId{
			get{return _IsNullSalaryRuleId;}
			set{if(!_InternalChangedIsNullSalaryRuleId)_IsNullSalaryRuleId=value;}
		}
		[XmlElement(ElementName = "IsNullRuleName")]
		public bool IsNullRuleName{
			get{return _IsNullRuleName;}
			set{if(!_InternalChangedIsNullRuleName)_IsNullRuleName=value;}
		}
		[XmlElement(ElementName = "IsNullNote")]
		public bool IsNullNote{
			get{return _IsNullNote;}
			set{if(!_InternalChangedIsNullNote)_IsNullNote=value;}
		}
		[XmlElement(ElementName = "IsNullStatus")]
		public bool IsNullStatus{
			get{return _IsNullStatus;}
			set{if(!_InternalChangedIsNullStatus)_IsNullStatus=value;}
		}
		[XmlElement(ElementName = "IsNullFromDay")]
		public bool IsNullFromDay{
			get{return _IsNullFromDay;}
			set{if(!_InternalChangedIsNullFromDay)_IsNullFromDay=value;}
		}
		[XmlElement(ElementName = "IsNullToDay")]
		public bool IsNullToDay{
			get{return _IsNullToDay;}
			set{if(!_InternalChangedIsNullToDay)_IsNullToDay=value;}
		}
		[XmlElement(ElementName = "SalaryRuleId")]
		public int SalaryRuleId{
			get{return _SalaryRuleId;}
			set{
				_SalaryRuleId=value;
				if(_SalaryRuleId!=null){
					_IsNullSalaryRuleId=false;
					_InternalChangedIsNullSalaryRuleId=true;
				}
			}
		}
		[XmlElement(ElementName = "RuleName")]
		public string RuleName{
			get{return _RuleName;}
			set{
				_RuleName=value;
				if(_RuleName!=null){
					_IsNullRuleName=false;
					_InternalChangedIsNullRuleName=true;
				}
			}
		}
		[XmlElement(ElementName = "Note")]
		public string Note{
			get{return _Note;}
			set{
				_Note=value;
				if(_Note!=null){
					_IsNullNote=false;
					_InternalChangedIsNullNote=true;
				}
			}
		}
		[XmlElement(ElementName = "Status")]
		public Byte Status{
			get{return _Status;}
			set{
				_Status=value;
				if(_Status!=null){
					_IsNullStatus=false;
					_InternalChangedIsNullStatus=true;
				}
			}
		}
		[XmlElement(ElementName = "FromDay")]
		public int FromDay{
			get{return _FromDay;}
			set{
				_FromDay=value;
				if(_FromDay!=null){
					_IsNullFromDay=false;
					_InternalChangedIsNullFromDay=true;
				}
			}
		}
		[XmlElement(ElementName = "ToDay")]
		public int ToDay{
			get{return _ToDay;}
			set{
				_ToDay=value;
				if(_ToDay!=null){
					_IsNullToDay=false;
					_InternalChangedIsNullToDay=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END SalaryRulesEntityBase*****************************************/
	/*****************************************************************************************************/
}

